package com.example.gmallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.example.gmallproduct.VO.AttrGroupVo;
import com.example.gmallproduct.VO.AttrReleationVo;
import com.example.gmallproduct.VO.AttrResponseVo;
import com.example.gmallproduct.entity.AttrAttrgroupRelationEntity;
import com.example.gmallproduct.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author WDL
 * @email 2329156214@QQ.com
 * @date 2022-05-01 14:45:09
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryByCatId(Map<String, Object> params, Long catId);

    AttrGroupEntity getBySelf(Long attrGroupId);

    List<AttrResponseVo> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrReleationVo[] relationEntity);

    List<AttrGroupVo> getAttrsBycatelogId(Long catelogId);

//    PageUtils findNoAttr(Map<String,Object> params,Long attrGroupId);
}

